package main

import "fmt"
func main()  {
	cmd := parseCmd()
	if cmd.versionFlag {
		fmt.Println("version ch01");
	} else if cmd.helpFlag || cmd.class == "" {
		printUsage()
	} else {
		startJVM(cmd)
	}
} 

func startJVM(cmd *Cmd){
	fmt.Printf("classpath:%s class:%s args:%v\n",cmd.cpOption,cmd.cpOption,cmd.args);
}